package com.quark.mapper.system;

import com.quark.model.system.role.SysRole;

import java.util.List;

public interface SysRoleMapper {

    int deleteByPrimaryKey(Integer rId);

    int insert(SysRole record);

    int updateByPrimaryKeySelective(SysRole record);

    List<SysRole> selectListAll();

    /**
     * 修改角色状态
     *
     * @param rId
     * @param state
     * @return
     */
    int updateState(int rId, int state);
}
